<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>{{$tplData['title']}} - ZOL商城系统</title>
        <link rel="stylesheet" href="{{__ROOT__}}/templates/zol/style/css/main.css">
        <link rel="stylesheet" href="{{__ROOT__}}/templates/zol/style/css/common.css">
		<?php $css = explode('|', $tplData['css']);
			foreach ($css as $k => $c) { ?>
		<link rel="stylesheet" href="{{__ROOT__}}/templates/zol/style/css/{{$c}}.css">
		<?php } ?>
        <link rel="stylesheet" href="{{__ROOT__}}/templates/zol/style/font/css/font-awesome.min.css">
        <script type="text/javascript" src="Public/org/jquery.min.js"></script>
        <script>
        	//下拉菜单
			$(function(){
				$('.nav').hover(function() {
					$('.combobox').show();
					$(this).find('i').removeClass('fa-chevron-down').addClass('fa-chevron-up');
				}, function() {
					$('.combobox').hide();
					$(this).find('i').removeClass('fa-chevron-up').addClass('fa-chevron-down');
				});
			});
        </script>
    </head>
    <body>
    
    	<!--头部导航开始-->
    	<div class="w100pre top">
    		<div class="w960">
    			<div class="pull_left top_nav">
    				<a href="http://www.wysls.com">大学生演讲网</a> | 
    				<a href="http://chenhua.wang">陈华博客</a>
    			</div>
				{{if value="isset($_SESSION['user']['user_id'])"}}
    			<ul class="pull_right top_login">
    				<li>欢迎来到ZOL商城，<a href="{{U('Home/User/home')}}">{{$_SESSION['user']['username']}}</a> [<a href="{{U('Home/User/quit')}}">退出</a>]</li>
    				<li><a href="{{U('Home/Goods/cart')}}" class="cart">购物车</a></li>
					<li><a href="{{U('Home/Article/article',array('article'=>16))}}">帮助中心</a></li>
					<li>客服电话：<span>400-678-0068</span></li>
    			</ul>
				{{else}}
				<ul class="pull_right top_login">
    				<li>欢迎来到ZOL商城，请<a href="{{U('Home/User/login')}}">登录</a> [<a href="{{U('Home/User/reg')}}">免费注册</a>]</li>
    				<li><a href="{{U('Home/Goods/cart')}}" class="cart">购物车</a></li>
					<li><a href="{{U('Home/Article/article',array('article'=>16))}}">帮助中心</a></li>
					<li>客服电话：<span>400-678-0068</span></li>
    			</ul>
				{{endif}}
    		</div>
    	</div>
    	<!--头部导航结束-->
		
		<!--banner区域开始-->
		<div class="w960 banner">
			<div class="logo"><a href="{{__ROOT__}}"><img src="{{__ROOT__}}/templates/zol/images/logo_180x50.png"/></a></div>
			<div class="title">中关村在线旗下网上商城</div>
			<div class="search">
				<div class="text">
					<input type="text">
					<button>搜 索</button>
				</div>
				<div class="word" style="display:none">
					<a href="">月末亏本促</a> 
					<a href="">华为荣耀4C</a>
					<a href="">华为</a>
					<a href="">荣耀7</a>
					<a href="">魅族</a>
					<a href="">MX5</a>
					<a href="">魅蓝</a>
					<a href="">Note2</a>
				</div>
			</div>
		</div>
		<!--banner区域结束-->
		

		<?php
		//全部商品分类
        $cate = new \Home\Model\Cate;
        $cateData = $cate->getChan();
        // p($cateData);
        View::with('cateData',$cateData);
		?>

		<!--整站通用导航菜单 开始-->
		<div class="w100pre navbar">
			<ul class="w960">
				<li class="nav"><a href="">全部商品分类</a><i class="fa fa-chevron-down"></i>
					<div class="combobox">
						<ul>
							<?php foreach ($cateData as $k => $v): ?>
								<li>{{$v['cate_name']}}
									<div class="ext">
										<?php foreach ($v['_data'] as $m => $n): ?>
										<dl>
											<dt>{{$n['cate_name']}}</dt>
											<dd>
												<?php foreach ($n['_data'] as $p => $q): ?>
												<a href="{{U('Home/Lists/index',array('cate_id'=>$q['cate_id']))}}">{{$q['cate_name']}}</a>
												<?php endforeach ?>
											</dd>
										</dl>
										<?php endforeach ?>
									</div>
								</li>
							<?php endforeach ?>
						</ul>
					</div>
				</li>
				<li><a href="{{__ROOT__}}">首页</a></li>
				<li><a href="{{U('Home/Lists/Index',array('cate_id'=>12))}}">分类页</a></li>
				<li><a href="{{U('Home/Goods/Index',array('goods_id'=>1))}}">详情页</a></li>
				<li><a href="http://chenhua.wang" target="_blank">陈华博客</a></li>
				<li><a href="http://www.wysls.com" target="_blank">大学生演讲网</a></li>
			</ul>
		</div>
		<!--整站通用导航菜单 结束-->

		<!--当前位置 开始-->
		<div class="w960 location">
			<i class="fa fa-home"></i> <a href="">zol商城</a> > {{$tplData['title']}}
		</div>
		<!--当前位置 结束-->